/*
 Navicat Premium Data Transfer

 Source Server         : 法雷奥考勤库
 Source Server Type    : SQL Server
 Source Server Version : 13004001
 Source Host           : 192.168.2.221:1433
 Source Catalog        : scm_main
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 13004001
 File Encoding         : 65001

 Date: 20/12/2019 13:39:27
*/


-- ----------------------------
-- Table structure for bd_banci_department_query
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[bd_banci_department_query]') AND type IN ('U'))
	DROP TABLE [dbo].[bd_banci_department_query]
GO

CREATE TABLE [dbo].[bd_banci_department_query] (
  [id] int  IDENTITY(1,1) NOT NULL,
  [dep_id] char(16) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [whether_deleted] int DEFAULT ((0)) NULL,
  [banci_name_32] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [banci_name_35] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [banci_name_36] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [banci_name_37] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [banci_name_39] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [banci_name_40] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [banci_name_41] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [banci_name_42] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [banci_name_43] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [banci_name_44] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [banci_name_45] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [banci_name_46] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [banci_name_47] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [banci_name_48] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [banci_name_49] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [banci_name_50] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [banci_name_51] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [banci_name_53] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL,
  [banci_name_54] varchar(255) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[bd_banci_department_query] SET (LOCK_ESCALATION = TABLE)
GO

EXEC sp_addextendedproperty
'MS_Description', N'部门ID',
'SCHEMA', N'dbo',
'TABLE', N'bd_banci_department_query',
'COLUMN', N'dep_id'
GO

EXEC sp_addextendedproperty
'MS_Description', N'是否删除 0 不删除  1删除',
'SCHEMA', N'dbo',
'TABLE', N'bd_banci_department_query',
'COLUMN', N'whether_deleted'
GO


-- ----------------------------
-- Primary Key structure for table bd_banci_department_query
-- ----------------------------
ALTER TABLE [dbo].[bd_banci_department_query] ADD CONSTRAINT [PK__bd_banci__A9A755B0043CE80E] PRIMARY KEY CLUSTERED ([id], [dep_id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO

